package com.binyong.controller;

import com.binyong.redis.common.RedisCommonUtils;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.Map;

@RestController
public class DemoController {

    @Resource
    private RedisCommonUtils redisCommonUtils;


    @RequestMapping("/hello")
    public Map<String,Object> hello(){
        Map<String,Object> data = new HashMap<>();

        redisCommonUtils.hello("你有新的消息，请接收！");

        data.put("code","0");
        data.put("message","发送成功");
        return data;
    }


}
